"""
MicroPython gc module stubs
Garbage collector control
"""

def enable() -> None:
    """Enable automatic garbage collection"""
    ...

def disable() -> None:
    """Disable automatic garbage collection"""
    ...

def collect() -> None:
    """Run garbage collection"""
    ...

def mem_free() -> int:
    """Return free heap memory in bytes"""
    ...

def mem_alloc() -> int:
    """Return allocated heap memory in bytes"""
    ...

def threshold(amount: int = None) -> int:
    """Get or set GC allocation threshold"""
    ...
